From: bors Date: Wed, 2 May 2018 23:52:15 +0000 (+0000) Subject: Auto merge of #5462 - matklad:install-releases, r=alexcrichton X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~1^2~25 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=6cd841fe4a55d21d8f9a74102e86acb9475d45da;p=cargo.git Auto merge of #5462 - matklad:install-releases, r=alexcrichton Don't install pre-releases by default Currently, `cargo install` will try to install a pre-release version, if available (try `cargo install rand`). This happens because we use `VersionReq::any`, if no version is specified, and that matches pre-releases. The fix is to use `*`, which is different from `any`. This needs to be done in `cargo install`, and not directly in `parse_no_deprecated`, the latter would be wrong, as demonstrated by a new test with patch. --- 6cd841fe4a55d21d8f9a74102e86acb9475d45da